An algorithm is a finite, precisely described sequence of steps to solve a problem or complete a task. An algorithm must terminate in a finite amount of time.
Abstraction is a problem-solving technique that involves removing specific details to simplify problems. There are six types of abstraction:
Procedural decomposition is where a problem is broken down into a number of sub-problems, with each sub-problem accomplishing a specific task. Each sub-problem may be further subdivided.
Composition abstraction is where procedures are combined to form compound procedures, by "plugging" outputs from some procedures into the inputs of others.
Automation is where models of real-world objects are used to solve problems. Automation involves:
A set is an unordered collection of unique values. Sets can be constructed:
Sets can be represented compactly, for example:
A subset (
Types of set include:
The Cartesian products of two sets, written
The four set operations are: